import Vue from "vue";
import App from "./App.vue";

import router from "@/router/index";

import axios from "axios";

axios.defaults.baseURL = "http://liufusong.top:8080/";

axios.interceptors.request.use(
  (request) => {
    return request;
  },
  (err) => {
    return Promise.reject(err);
  }
);
axios.interceptors.response.use(
  (response) => {
    return response.data;
  },
  (err) => {
    return Promise.reject(err);
  }
);
Vue.prototype.$http = axios;

Vue.config.productionTip = false;

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
